#include "CommonFunction.h"

extern "C"
UCHAR* PsGetProcessImageFileName(PEPROCESS Process);

void ShuiMian(ULONG n)
{
	LARGE_INTEGER timeout;
	timeout.QuadPart = -10 * 1000 * 1000;
	timeout.QuadPart *= n;
	KeDelayExecutionThread(KernelMode, FALSE, &timeout);

}


UCHAR *GetCurrentProcessName() {

	auto strName = PsGetProcessImageFileName(PsGetCurrentProcess());

	//KdPrint(("[myddk] ProcessName is %s", strName));

	return strName;

}
UCHAR *GetProcessName(PEPROCESS ptrEP) {

	auto strName = PsGetProcessImageFileName(ptrEP);

	//KdPrint(("[myddk] ProcessName is %s", strName));

	return strName;

}

